from selenium import webdriver
from selenium.webdriver.common.by import By
import time


driver = webdriver.Edge("D:\software\python\python\msedgedriver.exe")

url = "https://www.baidu.com/"

driver.get(url)

#kw su
# driver.find_element(By.ID,"kw").send_keys("美女")
# driver.find_element(By.ID,"su").click()

driver.find_element(By.PARTIAL_LINK_TEXT,"贴").click()


time.sleep(5)
driver.quit()